<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<meta content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
	<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
	<meta content="telephone=no" name="format-detection">
	<link rel="stylesheet" href="__PUBLIC__/wechat/css/global.css" />
	<link rel="stylesheet" href="__PUBLIC__/wechat/css/main.css" />
	<title>个人中心</title>
</head>
<body>
	<div class="all_top">
        <div class="all_top_main">
            <a href="javascript:history.go(-1);" class="all_top_back"></a>
            <p class="all_top_tit t_c">添加收货地址</p>
        </div>
    </div>
	<div class="add_address">
		<form action="confirm_order.html" method="post" id="forms">
			<ul>
				<li class="box">
					<div class="add_address_left">
						收货人
					</div>
					<input type="text" class="box_flex1"/>
				</li>
				<li class="box">
					<div class="add_address_left">
						联系电话
					</div>
					<input type="text" class="box_flex1"/>
				</li>
				<li class="box">
					<div class="add_address_left">
						收货人
					</div>
					<div class="box_flex1">
						<div class="box">
							<select name="province_" id="province_" class="box_flex1"></select>
		                    <select name="city_" id="city_" class="box_flex1"></select>
		                    <select name="area_" id="area_" class="box_flex1"></select>
						</div>
					</div>
				</li>
				<li class="box">
					<div class="add_address_left">
						详细地址
					</div>
					<input type="text" class="box_flex1"/>
				</li>
			</ul>
			<input type="submit" class="big_btn" value="添加" />
		</form>
	</div>
</body>
</html>
<script type="text/javascript" src="__PUBLIC__/wechat/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/wechat/js/public.js"></script>
<script type="text/javascript" src="__PUBLIC__/wechat/js/PCASClass.js"></script>
<script type="text/javascript" src="__PUBLIC__/wechat/js/jquery.validate.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/wechat/js/jquery-validate-methods.js"></script>
<script type="text/javascript">
	new PCAS("province_","city_","area_");
</script>
<script type="text/javascript">
    $(document).ready(function(){
        $('#forms').validate({//表单验证
            rules: {
                _name: {
                	required: true
                },
                _phone: {
                	required: true
                },
                _address: {
                	required: true
                }
            },
            messages: {
                _name: {
                	required:'请填写姓名'
                },
                _phone: {
                	required:'请填写联系电话'
                },
                _address: {
                	required:'请填写联系地址'
                }
            },  
            showErrors: function(errorMap, errorList) { 
                $.each( errorList, function(i,v){
                    if(v.message!=""){
                        openWarningBox(v.message);
                        return false;
                    }
                });  
            },
            /* 失去焦点时不验证 */
            onfocusout: false
        });
    });
</script>